﻿using DRapid.Utility.Compilation;
using DRapid.Web.Owin;
using DRapid.Web.Unity;
using Owin;

namespace WebSite.Admin
{
	public partial class Startup
	{
	    public void ConfigMiddleware(IAppBuilder app)
	    {
            /*编译条件警告处理*/
            //var collector = new WarningCollector();
            //collector.AutoDetect = false;
            //collector.AddAssemblyToDetect("Thirdparty.Si.Service");
            //app.Use<HtmlAssemblyWarningTransferMiddleware>(collector, "当前系统正在测试，非测试人员切勿使用：");
            /*IoC容器清理器*/
            app.Use<UnityIocCleaner>();
            /*状态码转移*/
            app.Use<ManagedHttpStatusCodeTransferMiddleware>();
        }
	}
} 